#ifndef _VLAN_H_
#define _VLAN_H_

#include "main.h"

const int IPT_PPP = 3 ;


/*	function in vlan.cpp	*/

const int ADDIF = 1 ;
const int DELIF = 0 ;

const int QINQ = 1 ;

extern const std::string DHCP_CONFIG_FILE ;
extern const std::string dhcpCMD ;
extern const std::string dhcpKillCmd ;

extern bool handleTapInOrOutTheBridge(int type) ;
extern bool initAddVlanAndBridge();
extern bool vlanAndBridgeRecover();//add by zzl 20151127
extern bool cleanVlanHasExist();//add by zzl 20151127
extern bool judgeTapInterfaceUp() ;
extern bool createDhcpConfFile() ;
extern bool createDnsmasqConfFile();
extern bool createDefaultDnsmasqFile() ;
extern void dhcpRestart();
extern void iptablesAction(int wanOrNot) ;
extern bool waitTapInterfaceUp();//add by zzl

#endif

